package com.cnswhy.cloud.server.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2021-01-29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "CustomerBankPageDTO", description = "")
public class CustomerBankPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "")
    @NotNull(message = "不能为空")
    private Long customerId;
    @ApiModelProperty(value = "")
    @NotEmpty(message = "不能为空")
    @Length(max = 50, message = "长度不能超过50")
    private String bankName;
    @ApiModelProperty(value = "")
    @NotEmpty(message = "不能为空")
    @Length(max = 50, message = "长度不能超过50")
    private String bankNum;
    @ApiModelProperty(value = "")
    @NotEmpty(message = "不能为空")
    @Length(max = 20, message = "长度不能超过20")
    private String accountName;
    @ApiModelProperty(value = "")
    @NotEmpty(message = "不能为空")
    @Length(max = 11, message = "长度不能超过11")
    private String mobile;
    @ApiModelProperty(value = "")
    @NotEmpty(message = "不能为空")
    @Length(max = 18, message = "长度不能超过18")
    private String idCard;
    /**
     * 开户支行
     */
    @ApiModelProperty(value = "开户支行")
    @Length(max = 100, message = "开户支行长度不能超过100")
    private String bankBranch;
    /**
     * 卡类型
     */
    @ApiModelProperty(value = "卡类型")
    private Integer cardType;
    /**
     * cvv
     */
    @ApiModelProperty(value = "cvv")
    @Length(max = 20, message = "cvv长度不能超过20")
    private String cvv;
    /**
     * 有效期
     */
    @ApiModelProperty(value = "有效期")
    @Length(max = 20, message = "有效期长度不能超过20")
    private String expdate;

}
